#ifndef _OMCI_ADAPT_VOIP_H_
#define _OMCI_ADAPT_VOIP_H_

typedef struct {
    char backup_outbound_proxy[128];
    char backup_proxy_server[128];
    char backup_register_server[128];
    char outbound_proxy[128];
    char protocol[128];
    char proxy_server[128];
    char region[128];
    char register_server[128];
    int backup_proxy_server_port;
    int backup_outbound_proxy_port;
    int backup_register_server_port;
    int outbound_proxy_port;
    int proxy_server_port;
    int reg_expire_timer;
    int register_server_port;
    int session_expires;
    int min_session_expires;
    int options_interval_time_enable;
    int options_interval_time;
} basic_comm_params;

typedef struct {
    char account[128];
    char password[128];
    char telephone_number[128];
    int enable;
    int port_index;
} basic_user_params;

void init_voip_config();
int ubus_client_init(void);
void ubus_client_exit(void);

int voip_set_proxy_server(char *proxy_server);
int voip_set_register_server(char *register_server);

int voip_set_telephone_number(char *telephone_number);
int voip_set_user_name(char *user_name);
int voip_set_user_password(char *password);
int voip_set_port_id(uint8_t port_id);

int omci_set_voip_basic_comm();
int omci_set_voip_basic_user();

#endif /* _OMCI_ADAPT_VOIP_H_ */